<% include ../header.ejs %>

<link rel="stylesheet" href="/stylesheets/app/evaluate/evaluate_servicelist.css">

<header data-am-widget="header" data-am-sticky class="am-header am-header-default" id="appTemplates-Nav">
    <div class="am-header-left am-header-nav">
        <a href='/smtool_project/wxapp/' class="">
            <img class="am-header-icon-custom"
                 src="data:image/svg+xml;charset&#x3D;utf-8,&lt;svg xmlns&#x3D;&quot;http://www.w3.org/2000/svg&quot; viewBox&#x3D;&quot;0 0 12 20&quot;&gt;&lt;path d&#x3D;&quot;M10,0l2,2l-8,8l8,8l-2,2L0,10L10,0z&quot; fill&#x3D;&quot;%23fff&quot;/&gt;&lt;/svg&gt;"
                 alt=""/>
        </a>
    </div>

    <h1 class="am-header-title">
        <a href="#title-link" class="" id="Typeface-whitecolor">个股推荐</a>
    </h1>

    <div class="am-header-right am-header-nav">
        <!-- <a href="/smtool_project/wxapp/stockrecommend/add" class="">-->
        <a href="#" class="" data-am-modal="{target: '#modal-type-add', closeViaDimmer: 0, width: 240}">
            <i class="am-header-icon am-icon-plus"></i>
        </a>
    </div>
</header>

<div class="am-modal am-modal-no-btn" tabindex="-1" id="modal-type-add">
    <div class="am-modal-dialog">
        <div class="am-modal-hd">选择推荐类型
            <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
        </div>
        <div class="am-modal-bd">
            <a href="edit?addType=0">
                <button class="am-btn am-btn-primary" style="width:80%;margin:15px auto;">内部推荐</button>
            </a>
            <a href="edit?addType=1">
                <button class="am-btn am-btn-primary" style="width:80%;margin:15px auto;">外部推荐</button>
            </a>
        </div>
    </div>
</div>

<div data-am-widget="list_news"
     class="am-list-news am-list-news-default ">
    <!--<div class="am-list-news-hd am-cf">-->
    <!--<h2 class="am-list-item-hd am-g am-div-margin">-->
    <!--<span class="am-u-sm-3">代码</span><span class="am-u-sm-3">卖家</span><span class="am-u-sm-3">目标价</span><span class="am-u-sm-3">时间</span>-->
    <!--</h2>-->
    <!--</div>-->

    <!--<div data-am-widget="titlebar" class="am-titlebar am-titlebar-multi" >-->
    <!--&lt;!&ndash;<h2 class="am-titlebar-title ">&ndash;&gt;-->
    <!--&lt;!&ndash;调入&ndash;&gt;-->
    <!--&lt;!&ndash;</h2>&ndash;&gt;-->

    <!--<nav class="am-titlebar-nav">-->
    <!--<a href="#more" class=""> &raquo;</a>-->
    <!--</nav>-->
    <!--</div>-->
    <div class="am-list-news-bd" ng-app="stockrecommendList" ng-controller="listController">
        <!--搜索-->
       <!-- <div class="col-lg-12">
            <div class="am-form-group">
                <div class="am-input-group am-input-group-primary search-head">
                    <input type="text" id="txtSearch"  class="am-form-field " ng-model="queryStr">
                    <span class="am-input-group-btn">
            <a id="aSlinke">
                <button class="am-btn am-btn-primary" type="button" ng-click="allData(addType)">
                    <span class="am-icon-search"></span>
                </button>
            </a>
          </span>
                </div>
            </div>
        </div>-->

        <div class="am-btn-group am-btn-group-justify">
            <a class="am-btn am-btn-primary " ng-class="addType== ''?'am-active':''" role="button" ng-click="allData()">全部</a>
            <a class="am-btn am-btn-primary" ng-class="addType=='0'?'am-active':''" role="button" ng-click="allData('0')">内部</a>
            <a class="am-btn am-btn-primary" ng-class="addType=='1'?'am-active':''" role="button" ng-click="allData('1')">外部</a>
        </div>

        <ul class="am-list" id="">
            <li ng-repeat="data in datas"  class="am-list-item-desced am-list-item-thumbed" ng-click="toDetail(data.rowId)">
                <div class="am-list-main">

                    <div class="am-list-item-hd am-g am-div-margin">
                        <a class="am-u-sm-9">
                            <h3 class="am-list-item-hd">
                                <div ng-if="data.stockId">
                                    {{data.stockId.name}}{{data.stockId.stockCode}}{{data.addType == 0 ? '（内部）' : '（外部）'}}
                                </div>
                            </h3>
                        </a>

                        <div class="am-u-sm-3 am-fr">
                            <small class="am-list-item-hd" >
                                <div ng-if="data.stockId !=null">
                                    {{stockVals[$index]|getRealPercent:data.importPrice}}
                                </div>
                            </small>
                        </div>

                    </div>
                    <div class="am-list-item-hd am-g am-div-margin">
                        <div class="am-u-sm-9">
                            <small class="am-list-item-hd">
                               {{data.seller != null?data.seller.name:''}} {{data.createUserId.name}} 目标价 {{data.expectPrice}} {{data.updateTime}}
                            </small>
                        </div>
                        <div class="am-u-sm-3 am-fr">
                            <small class="am-list-item-hd" >
                                {{stockVals[$index]}}
                            </small>
                        </div>
                    </div>
                </div>
            </li>
        </ul>
    </div>
</div>
<script src="/javascripts/app/stockrecommend/stockrecommend.js"></script>
<script>

</script>
<% include ../footer.ejs %>

